export function isPrivilege(buttonCode) {
  return false
  /* const userResourceCodes = localStorage.getItem('UserResourceCode_Key')
  if (userResourceCodes.split(',').indexOf(buttonCode) > -1) {
    return true
  } else {
    return false
  }*/
}

/**
 * 校验权限
 * @param param
 * @returns {boolean}
 */
function isP(param) {
  return true
/*  const userResourceCodes = localStorage.getItem('UserResourceCode_Key')
  if (userResourceCodes.split(',').indexOf(param) > -1) {
    return true
  } else {
    return false
  }*/
  // return false
}

export default {
  install: function(Vue) {
    Vue.prototype.isP = (param) => isP(param)
  }
}
